$(window).load(function() {
    setMail();
    initShowroomPictures();
});

function initShowroomPictures() {
    $('.showroom-detail-image').each(function () {
        if ($(this).height() > $(this).width()) {
            $(this).parent().removeClass('showroom-detail-image-crop-wider');
            $(this).parent().addClass('showroom-detail-image-crop-higher');
        }
    });
}

function setMail() {
    var user = "duskova";
    var host1 = "petrkrejcir";
    var host2 = ".cz";
    var link = user + "@" + host1 + host2;
    $('.eadd').html("<a hre" + "f=ma" + "ilto:" + user + "@" + host1 + host2 + ">" + link + "</a>");
}
